import Button from 'antd/es/button';
import React, { useState } from 'react';
import Child from './child';

function App() {
  const [cacheList, setCacheList] = useState<any>(() => {
    const dataList = {
      crfDetail: [],
      followArr: [
        {
          name: '录入记录1',
        },
      ],
      numbers: [], // 自定义表单总数
    };
    return dataList;
  });
  return (
    <div className="App">
      <button onClick={() => {
        setCacheList({
          ...cacheList, followArr: []
        })
      }}>点我1</button>
      <Button onClick={()=>{
        const {crfDetail} = cacheList
        console.log(crfDetail,'crfDetail')
      }
      }>获取最新</Button>
      <Child/>
    </div>
  );
}

export default App;